package org.elepower.pojo;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;
import java.util.Objects;

public class PsRole implements Serializable {
    private Integer id;
    private String roleName;
    private Date creationTime;
    private String createdBy;
    private Date lastUpdateTime;
    private Integer isStart;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public Date getCreationTime() {
        return creationTime;
    }

    public void setCreationTime(Date creationTime) {
        this.creationTime = creationTime;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    public Date getLastUpdateTime() {
        return lastUpdateTime;
    }

    public void setLastUpdateTime(Date lastUpdateTime) {
        this.lastUpdateTime = lastUpdateTime;
    }

    public Integer getIsStart() {
        return isStart;
    }

    public void setIsStart(Integer isStart) {
        this.isStart = isStart;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        PsRole psRole = (PsRole) o;
        return Objects.equals(id, psRole.id) &&
                Objects.equals(roleName, psRole.roleName) &&
                Objects.equals(creationTime, psRole.creationTime) &&
                Objects.equals(createdBy, psRole.createdBy) &&
                Objects.equals(lastUpdateTime, psRole.lastUpdateTime) &&
                Objects.equals(isStart, psRole.isStart);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, roleName, creationTime, createdBy, lastUpdateTime, isStart);
    }
}
